package ee.rumba.iPhoneShop;

public class iPhoneShop {
  private static void usageExit() {
    System.out.println("Usage: java -jar iPhoneShop.jar command");
      System.out.println("   ARTWORK   -  artwork files tool");
      System.out.println("     KDICT   -  keyboard dictionary tool");
      System.exit(1);
  }
  public static void main(String[] args) throws Exception {
    if (args.length < 1) usageExit();
    String[] newArgs = new String[args.length - 1];
    for (int i=0; i<newArgs.length; i++) newArgs[i] = args[i+1];

    if (args[0].toUpperCase().startsWith("ART")) {
      ee.rumba.iPhoneShop.artwork.Main.main(newArgs);
    } else if (args[0].toUpperCase().startsWith("KDIC")) {
      ee.rumba.iPhoneShop.dictionary.Main.main(newArgs);
    }
  }
}
